package com.bigdatastudio.monitor.SearchVo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author xiao_jie
 * @date 2022/11/8 17:33
 * @describe 首页全局搜索视图（展现出来的东西）
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "bigdatanotice")
public class SearchNoticeVo {

    @Id
    private Integer Id;

    /**
     * <h3>公告标题</h3>
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String noticeTitle;

    /**
     * <h3>公告内容</h3>
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String noticeAbstract;

    /**
     * <h3>发布时间</h3>
     */
    @Field(type = FieldType.Keyword)
    private String pushTime;

    /**
     * <h3>状态</h3>
     */
    @Field(type = FieldType.Integer)
    private Integer status;

    /**
     * <h3>逻辑删除（1：已删除 0：未删除）</h3>
     */
    @Field(type = FieldType.Integer)
    private Integer isDelete;

}
